﻿// owner 蒋家伟

#include "LogUtils.h"

// jsdk
#include "Log.h"
#include "StringUtils.h"

using namespace  jsdk;

std::wstring jsdk::LogUtils::getSoftwareName()
{
    return Log::getInstance().getSoftName().toStdWString();
}

std::wstring jsdk::LogUtils::getSoftwareVersion()
{
    return Log::getInstance().getSoftVersion().toStdWString();
}

void jsdk::LogUtils::setSoftwareName(const std::wstring& softwareName)
{
    Log::getInstance().setSoftName(QString::fromStdWString(softwareName));
}

void jsdk::LogUtils::setSoftwareVersion(const std::wstring& softwareVersion)
{
    Log::getInstance().setSoftVersion(QString::fromStdWString(softwareVersion));
}
